OfflineRegion

class OfflineRegion : OfflineRegionInterface

An offline region represents an identifiable geographic region with optional metadata.

Functions

getGeometryDefinition
Link copied to clipboard
open fun getGeometryDefinition(): OfflineRegionGeometryDefinition
The geometry defining the region.
getIdentifier
Link copied to clipboard
open fun getIdentifier(): Long
The regions identifier
getMetadata
Link copied to clipboard
open fun getMetadata(): Array<Byte>
Arbitrary binary region metadata.
getTilePyramidDefinition
Link copied to clipboard
open fun getTilePyramidDefinition(): OfflineRegionTilePyramidDefinition
The tile pyramid defining the region.
invalidate
Link copied to clipboard
open fun invalidate(callback: AsyncOperationResultCallback)
Invalidate all the tiles for the region forcing to revalidate the tiles with the server before using.
purge
Link copied to clipboard
open fun purge(callback: AsyncOperationResultCallback)
Remove an offline region from the database and perform any resources evictions necessary as a result.
setOfflineRegionDownloadState
Link copied to clipboard
open fun setOfflineRegionDownloadState(state: OfflineRegionDownloadState)
Sets the download state of an offline region A region is either inactive (not downloading, but previously-downloaded resources are available for use), or active (resources are being downloaded or will be downloaded, if necessary, when network access is available).
setOfflineRegionObserver
Link copied to clipboard
open fun setOfflineRegionObserver(observer: OfflineRegionObserver)
Register an observer to be notified when the state of the region changes.